package com.itheima.service;

import java.util.Map;

public interface ReportService {


    /**
     /**
     * data:{
     * setmealNames:['直接访问','邮件营销','联盟广告','视频广告','搜索引擎'],
     * setmealCounts:[
     * {value:335, name:'直接访问'},
     * {value:310, name:'邮件营销'},
     * {value:234, name:'联盟广告'},
     * {value:135, name:'视频广告'},
     * {value:154, name:'搜索引擎'}
     * ]
     * }
     */
    Map getSetmealReport();

    /**
     * {
     *  "data":{
     *  "todayVisitsNumber":0,
     *  "reportDate":"2019-04-25",
     *  "todayNewMember":0,
     *  "thisWeekVisitsNumber":0,
     *  "thisMonthNewMember":2,
     *  "thisWeekNewMember":0,
     *  "totalMember":10,
     *  "thisMonthOrderNumber":2,
     *  "thisMonthVisitsNumber":0,
     *  "todayOrderNumber":0,
     *  "thisWeekOrderNumber":0,
     *  "hotSetmeal":[
     *  {"proportion":0.4545,"name":"粉红珍爱(女)升级TM12项筛查体检套餐","setmeal_count":5},
     *  {"proportion":0.1818,"name":"阳光爸妈升级肿瘤12项筛查体检套餐","setmeal_count":2},
     *  {"proportion":0.1818,"name":"珍爱高端升级肿瘤12项筛查","setmeal_count":2},
     *  {"proportion":0.0909,"name":"孕前检查套餐","setmeal_count":1}
     *  ],
     *  },
     *  "flag":true,
     *  "message":"获取运营统计数据成功"
     *  }
     *
     * @return
     */
    Map getBusinessReport() throws Exception;
}
